import requests from '../index'

// 获取歌单详情
export const reqMusicListDetail = (id) => {
  return requests({
    method: 'GET',
    url: `/playlist/detail?id=${id}`,
  })
}

// 获取歌单所有歌曲的接口 默认是前1-20首
export const reqMusicListAllMusic = (id) => {
  return requests({
    method: 'GET',
    url: `/playlist/track/all?id=${id}&limit=20&offset=0}`
  })
}

// 获取歌词
export const reqLyric = (id) => {
  return requests({
    method: 'GET',
    url: `/lyric?id=${id}`
  })
}